<?php

//防止恶意调用
if (!defined('IN_MOD'))
{
    die('Hacking attempt');
}

// 前后台公用配置程序
require(MODULEPARA_PATH.'/configmodule/config.php');
require(MODULEPARA_PATH.'/expmodule/common/expconfig.php');

// 加载模板程序配置
if($configinfo['tplok'] == 1)
{
	if(file_exists($configinfo['tplurl'].'/configmodule/config.php'))
	{
		require($configinfo['tplurl'].'/configmodule/config.php');
	}
	if(file_exists($configinfo['tplurl'].'/expmodule/common/expconfig.php'))
	{
		require($configinfo['tplurl'].'/expmodule/common/expconfig.php');
	}
}

// pc mobile xcx配置程序
if($configinfo['modulepara'] == "pc" || $configinfo['modulepara'] == "mobile" || $configinfo['modulepara'] == "xcx")
{
	require(MODULEPARA_PATH.'/configmodule/configmodule/config.php');
	require(MODULEPARA_PATH.'/expmodule/expconfig.php');
	
	// 加载模板程序配置
	if($configinfo['tplok'] == 1)
	{
		require($configinfo['tplurl'].'/configmodule/configmodule/config.php');
		require($configinfo['tplurl'].'/expmodule/expconfig.php');
	}	
	
	// 会员配置程序
	if($configmember)
	{
		require(MODULEPARA_PATH.'/configmodule/configmember/config.php');
		require(MODULEPARA_PATH.'/expmodule/member/expconfig.php');
		
		// 加载模板程序配置
		if($configinfo['tplok'] == 1)
		{
			require($configinfo['tplurl'].'/configmodule/configmember/config.php');
			require($configinfo['tplurl'].'/expmodule/member/expconfig.php');
		}
	}
	
	require(MODULEPARA_PATH.'/configmodule/configmodule/config_rear.php');
	require(MODULEPARA_PATH.'/expmodule/expconfig_rear.php');
	
	// 加载模板程序配置
	if($configinfo['tplok'] == 1)
	{
		require($configinfo['tplurl'].'/configmodule/configmodule/config_rear.php');
		require($configinfo['tplurl'].'/expmodule/expconfig_rear.php');
	}	
}

// 后台配置程序
if($configinfo['modulepara'] == "admin")
{
	require(MODULEPARA_PATH.'/configmodule/configmodulepara/config.php');	
	require(MODULEPARA_PATH.'/expmodule/admin/expconfig.php');
	
	// 加载模板程序配置
	if($configinfo['tplok'] == 1)
	{
		require($configinfo['tplurl'].'/configmodule/configmodulepara/config.php');
		require($configinfo['tplurl'].'/expmodule/admin/expconfig.php');
	}
}

// 商家后台配置程序
if($configinfo['modulepara'] == "supplier" || $configinfo['suppliermodule'] == 1 || $configinfo['adminsuppliermodule'] == 1)
{
	require(MODULEPARA_PATH.'/configmodule/configsupplier/config.php');
	require(MODULEPARA_PATH.'/expmodule/supplier/expconfig.php');
}
?>